Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalProtectiveBehaviourFactory неверно задано значение параметра isUpTrend в конструкторе ProtectiveProcessor #435

Closed
falkolab opened this issue Apr 19, 2024 · 0 comments

Comments

@falkolab
Copy link

Очень не информативное названа переменная isUpTrend.
С оглядкой на ServerProtectiveBehaviour и проведенным тестированием выходит, что переменная должна быть вычислена как protectiveSide == Sides.Buy, в противном случае уровень стоп заявки будет выставлен выше, а не ниже точки входа при лонговой позиции.

Я еще не пробовал стоп заявку на короткой позиции.

_stop = StopValue.IsSet() ? new ProtectiveProcessor(protectiveSide, _posPrice, protectiveSide == Sides.Sell, IsStopTrailing, StopValue, UseMarketOrders, new(), StopTimeout) { Parent = this } : null;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants